package fni;

/**
 * Created by Veronica on 2017/4/7.
 */

interface Inter1{
    public static final int AGE = 100; //   全局常量必须大写，全局是用public static 常量是用final
    public abstract void tell();
}

interface Inter2{
    public abstract void say();
}
abstract class Abs1{
    public abstract void print();
}

class A extends Abs1 implements Inter1,Inter2 {   //接口的多实现
    @Override
    public void tell() {

    }
    @Override
    public void say() {

    }

    @Override
    public void print() {

    }
}

interface  Inter3 extends Inter1,Inter2{
 //   一个接口不能继承一个抽象类，但是却可以通过extends关键字同时继承多个接口，实现接口的继承
}
    public class InterDemo01 {
    public static void main(String[] args) {
  //      Inter i = new Inter();
        A a = new A();
        a.tell();
        System.out.println(Inter1.AGE);//全局常量要使用类名来调用
        a.say();
        a.print();
        }

    }

